<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp" %>
<html>
<head>

<link rel="stylesheet" href="${ctx}/static/css/Master.css">
<script src="${ctx}/static/js/jquery-1.8.0.min.js"></script>
<script src="${ctx}/static/js/simpletooltip.min.js"></script>
<script src="${ctx}/static/js/selectUi.js"></script>
<script src="${ctx}/static/js/common/util.js"></script>
<script src="${ctx}/static/plugins/layer/layer.js"></script>
<script src="${ctx}/static/plugins/My97DatePicker/WdatePicker.js"></script>
<%-- 基础js,所有页面都需要引入此js,依赖layer.js --%>
<script src="${ctx}/static/js/common/base.js"></script>
<script>

function find(){
	 var a = $("#form1");
	a.submit();
}


</script>
</head>



<body  class="utilSubmit">
<div class="wrapper">
			
			<section class="boxRight">
				<div class="context boxborder">
				<form action="${ctx}/announce/indexAnnouceList" method="post" id="form1">
					<div class="SearchList">
						<ul class="clearfix">
							<li><span class="name">时间：</span>
							<span class="date"><input name="stTime" type="text"  placeholder="开始时间" id="datetimepicker_start" value="${advice.stTime}"  style="width:115;height:35" class="Wdate" onclick="WdatePicker()"/></span>
							<span class="fg">~</span><span class="date"><input name="endTime" type="text" placeholder="结束时间" id="datetimepicker_end"  value="${advice.endTime}"  style="width:115;height:35" class="Wdate" onclick="WdatePicker()"/>
							</span></li>
							<li class="combtn pr"><a href="javascript:void(0);" onclick="find()" class="utilSubmitBtn">查询</a><a href="javascript:void(0);" class="utilReset">重置</a><!-- <a href="${ctx}/announce/annouceAdd">新增</a> --></li>
						</ul>
					</div>
					
					<div class="com_table">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<th>标题</th>
								<th>时间</th>
								<th>操作</th>
							</tr>
							  <c:forEach items="${result.entityList}" var="advice">
							<tr>
								<td>${advice.advTitle}</td>
								<td>
								<div class="utilTips">
								<pretty:prettyTime date="${advice.startDate}"/>
								<div class="utilTipsText" style="display: none;"><fmt:formatDate value="${advice.startDate}" pattern="yyyy-MM-dd" /></div>
								</div>
								</td>
								
								<td>
								<a class="icon micon_9" title="详情" href="${ctx}/announce/${advice.advId}/indexListDetails"></a>
								</td>
							</tr>
							</c:forEach>
						</table>
						<%-- 分页 --%>
		    <%@ include file="/WEB-INF/common/page.jsp"%>
					</div>
					</form>
				</div>
			
		</section>
</div>
</body>
</html>